package ruifeng.zcj.dig.ui;


import ruifeng.zcj.dig.base.baidumap.BaiduMapActivity;

/**
 * 提取全局变量：Ctrl+Alt+F
 * Created by Administrator on 2016/10/9 0009.
 */
public class test extends BaiduMapActivity {

   // LocationClient mLocClient;
  //  public MyLocationListenner myListener = new MyLocationListenner();

  /*  @Override
    public int getLayoutId() {
        return R.layout.activity_order;
    }

    @Override
    public void initView() {*/
        //     pay(null);
     /*   SDKInitializer.initialize(getApplicationContext());

        mLocClient = new LocationClient(this);
        mLocClient.registerLocationListener(myListener);

        LocationClientOption option = new LocationClientOption();
        option.setOpenGps(true);// 打开gps
        // option.setCoorType("bd09ll"); //设置坐标类型
        // Johnson change to use gcj02 coordination. chinese national standard
        // so need to conver to bd09 everytime when draw on baidu map
        option.setCoorType("gcj02");
        option.setScanSpan(30000);
        option.setAddrType("all");
        mLocClient.setLocOption(option);
    }

    *//**
         * 监听函数，有新位置的时候，格式化成字符串，输出到屏幕中
         *//*
    public class MyLocationListenner implements BDLocationListener {
        @Override
        public void onReceiveLocation(BDLocation location) {
            if (location == null) {
                return;
            }
            Log.d("map", "On location change received:" + location);
            Log.d("map", "addr:" + location.getAddrStr());
            System.out.println("郑朝军"+location.getCity());

            showSnackBar("地址:"+location.getCity());
        }

        public void onReceivePoi(BDLocation poiLocation) {
            if (poiLocation == null) {
                return;
            }
        }
    }
    @Override
    protected void onResume() {
        if (mLocClient != null) {
            mLocClient.start();
        }
        super.onResume();
    }
    @Override
    protected void onStop() {
        mLocClient.stop();
        super.onStop();
    }
*/
   // }

}
